<template>
<div class="footer">
    <!-- PC版本的完整页脚 -->
    <div class="footer-content">
        <div class="footer-section">
            <h4>关于我们</h4>
            <p>伴福熊导航是一个专注于收集和分享优质网站资源的导航平台，旨在为用户提供便捷的网站发现和访问体验。</p>
        </div>
        <div class="footer-section">
            <h4>快速链接</h4>
            <ul>
                <li>
                    <router-link to="/about">
                        <span>关于我们</span>
                    </router-link>
                </li>
                <li>
                    <router-link to="/contact">
                        <span>联系我们</span>
                    </router-link>
                </li>
                <li>
                    <router-link to="/submit">
                        <span>提交网站</span>
                    </router-link>
                </li>
            </ul>
        </div>
        <div class="footer-section">
            <h4>联系方式</h4>
            <p>
                <i class="el-icon-message"></i> Email: contact@bfxnav.com<br>
                <i class="el-icon-phone"></i> 电话: 123-456-7890
            </p>
            <div class="social-icons">
                <a href="#" title="微信"><i class="el-icon-chat-dot-round"></i></a>
                <a href="#" title="微博"><i class="el-icon-share"></i></a>
                <a href="#" title="GitHub"><i class="el-icon-s-promotion"></i></a>
            </div>
        </div>
    </div>

    <div class="footer-bottom">
        <p> Copyright &copy; {{ currentYear }} 伴福熊 All Rights Reserved. | <a href="https://beian.miit.gov.cn/"
                target="_blank">鲁ICP备2021042776号-3</a>
        </p>
    </div>
</div>
</template>

<script>
export default {
    name: 'FooterComponent',
    computed: {
        currentYear() {
            return new Date().getFullYear();
        }
    }
}
</script>

<style scoped>
.footer {
    background-color: #ffffff;
    padding: 30px 0 0 0;
    margin-top: 30px;
    border-top: 1px solid #ebeef5;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h4 {
    color: #303133;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #409EFF;
}

.footer-section p {
    color: #606266;
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #606266;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #409EFF;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: #606266;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #409EFF;
}

.footer-bottom {
    background-color: #f5f7fa;
    padding: 15px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #909399;
    font-size: 14px;
}

.footer-bottom a {
    color: #909399;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #409EFF;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .footer {
        display: none;
        /* 在移动端隐藏整个页脚 */
    }
}
</style>